#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QAction>
#include <QMainWindow>
#include <QCloseEvent>
#include "ui_mainwindow.h"
#include "glwidget.h"

class DegreeDialog;
class RotationDialog;

class MainWindow : public QMainWindow, public Ui::MainWindow
{
    Q_OBJECT

public:
    MainWindow( QWidget *parent = 0 );
    ~MainWindow( );

protected:
    void closeEvent( QCloseEvent * );
    void setupDialogs( );

private slots:
    void on_actionRotate_triggered( );
    void on_actionCurveReduceDegree_triggered( );

private:
    DegreeDialog *degreeDialog;
    RotationDialog *rotationDialog;
    GLWidget *glWidget;
};

#endif // MAINWINDOW_H
